import request from '@/utils/request'

// 获取区域下拉列表
export function getRegionList() {
  return request({
    url: '/dispatch/system/dispatchPressureSpecialSubject/regionList',
    method: 'get'
  })
}

// 获取监测点下拉列表
export function getMonitoringPointList() {
  return request({
    url: '/dispatch/system/dispatchPressureSpecialSubject/monitoringPointList',
    method: 'get'
  })
}

// 压力合格率分析
export function getPressureQualifiedRate(params) {
  return request({
    url: '/dispatch/system/dispatchPressureSpecialSubject/pressureQualifiedRate',
    method: 'get',
    params
  })
}

// 压力趋势 - 折线图
export function getPressureTrend(params) {
  return request({
    url: '/dispatch/system/dispatchPressureSpecialSubject/trendAndProportion',
    method: 'get',
    params
  })
}

// 压力合格占比 - 饼图
export function getPressureRatio(params) {
  return request({
    url: '/dispatch/system/dispatchPressureSpecialSubject/trendAndProportionPie',
    method: 'get',
    params
  })
}

// 压力专题 - 点位榜单
export function getPointTable(params) {
  return request({
    url: '/dispatch/system/dispatchPressureSpecialSubject/pointTable',
    method: 'get',
    params
  })
}

// 压力告警统计
export function getPressureWarning() {
  return request({
    url: '/dispatch/system/dispatchPressureSpecialSubject/pressure_warning',
    method: 'get'
  })
}

// 压力振幅趋势
export function getAmplitudeTrend(params) {
  return request({
    url: '/dispatch/system/dispatchPressureSpecialSubject/amplitudeTrend',
    method: 'get',
    params
  })
}

// 告警分时段占比
export function getAlarmDistribution(params) {
  return request({
    url: '/dispatch/system/dispatchPressureSpecialSubject/alarm_distribution',
    method: 'get',
    params
  })
}

// 告警趋势分析
export function getAlarmTrend(params) {
  return request({
    url: '/dispatch/system/dispatchPressureSpecialSubject/alarm_trend',
    method: 'get',
    params
  })
}